<!--
*Author：DGZ
 *Contact：jiduxiong@dagongzao.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/wmsproject/order/Wms_OrderScanCache.jsx此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :details="details"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/wmsproject/order/Wms_OrderScanCache.jsx";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        name:'Wms_OrderScanCache',
        setup() {
            const table = ref({
                key: "OrderScanCacheId",
                footer: "Foots",
                cnName: "扫码信息",
                name: "order/Wms_OrderScanCache",
                newTabEdit: false,
                url: "/Wms_OrderScanCache/",
                sortName: "OrderScanCacheId"
            });
            const editFormFields = ref({"FunctionName":"","Remarks":"","WarehouseId":"","OrderId":"","OrderNo":"","Sn":"","ScanTime":"","StockCode":"","ScannedQty":"","LotDateCode":"","InventorySnId":"","VenderId":"","LotNo":"","StockId":"","ContainerCode":"","DestStockId":""});
            const editFormOptions = ref([[{"title":"备注","field":"Remarks"},
                               {"dataKey":"BASE_Menu","data":[],"title":"操作功能名称","field":"FunctionName"}],
                              [{"dataKey":"WMS_Warehouse","data":[],"title":"仓库","field":"WarehouseId","type":"number"},
                               {"dataKey":"WMS_Order","data":[],"title":"单据","field":"OrderId","type":"number"}],
                              [{"title":"单据号","field":"OrderNo"},
                               {"title":"条码内容","field":"Sn"}],
                              [{"title":"扫描时间戳","field":"ScanTime"},
                               {"title":"库位编码","field":"StockCode"}],
                              [{"title":"数量","required":true,"field":"ScannedQty","type":"decimal"}],
                              [{"title":"批次","field":"LotDateCode"},
                               {"title":"SN库存表ID","field":"InventorySnId","type":"number"}],
                              [{"dataKey":"BASE_Vendor","data":[],"title":"供应商","field":"VenderId","type":"number"},
                               {"title":"批次号","field":"LotNo"}],
                              [{"title":"容器号","field":"ContainerCode"},
                               {"dataKey":"WMS_Stock","data":[],"title":"库位","field":"StockId","type":"number"}],
                              [{"dataKey":"WMS_Stock","data":[],"title":"目标库位","field":"DestStockId","type":"number"}]]);
            const searchFormFields = ref({});
            const searchFormOptions = ref([]);
            const columns = ref([{field:"OrderScanCacheId",title:"ID",type:"bigint",width:110,hidden:true,readonly:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"FunctionName",title:"操作功能名称",type:"string",bind:{ key:"BASE_Menu",data:[]},width:150,showOverflowTooltip:true,align:"left"},
                       {field:"WarehouseId",title:"仓库",type:"bigint",bind:{ key:"WMS_Warehouse",data:[]},width:110,showOverflowTooltip:true,align:"left"},
                       {field:"OrderId",title:"单据",type:"bigint",bind:{ key:"WMS_Order",data:[]},width:160,showOverflowTooltip:true,align:"left"},
                       {field:"OrderNo",title:"单据号",type:"string",width:180,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Sn",title:"条码内容",type:"string",width:220,showOverflowTooltip:true,align:"left"},
                       {field:"ScanTime",title:"扫描时间戳",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"StockCode",title:"库位编码",type:"string",width:180,showOverflowTooltip:true,align:"left"},
                       {field:"ScannedQty",title:"数量",type:"decimal",width:110,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"StockId",title:"库位",type:"bigint",bind:{ key:"WMS_Stock",data:[]},width:110,showOverflowTooltip:true,align:"left"},
                       {field:"DestStockId",title:"目标库位",type:"bigint",bind:{ key:"WMS_Stock",data:[]},width:110,showOverflowTooltip:true,align:"left"},
                       {field:"LotDateCode",title:"批次",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"InventorySnId",title:"SN库存表ID",type:"bigint",width:120,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"VenderId",title:"供应商",type:"bigint",bind:{ key:"BASE_Vendor",data:[]},width:110,showOverflowTooltip:true,align:"left"},
                       {field:"LotNo",title:"批次号",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"ContainerCode",title:"容器号",type:"string",width:120,showOverflowTooltip:true,align:"left"},
                       {field:"IsValid",title:"是否有效",type:"int",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"CreateId",title:"创建用户",type:"bigint",width:80,hidden:true,require:true,showOverflowTooltip:true,align:"left"},
                       {field:"Creator",title:"创建人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"Remarks",title:"备注",type:"string",width:150,showOverflowTooltip:true,align:"left"},
                       {field:"CreateTime",title:"创建时间",type:"datetime",width:110,showOverflowTooltip:true,align:"left"},
                       {field:"ModifyId",title:"修改用户",type:"bigint",width:80,hidden:true,showOverflowTooltip:true,align:"left"},
                       {field:"Modifier",title:"修改人",type:"string",width:100,showOverflowTooltip:true,align:"left"},
                       {field:"MaterialId",title:"物料ID",type:"bigint",width:120,showOverflowTooltip:true,align:"left"}]);
            const detail = ref({columns:[]});
            const details = ref([]);
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
                details
            };
        },
    });
</script>
